/**
 * Baijiahulian.com Inc. Copyright (c) 2014-2014 All Rights Reserved.
 */
package com.baijia.dao;

import com.baijia.dao.po.OrgAccount;

/**
 * @title OrgAccountDao
 * @desc 机构账户dao
 * @author caoliang
 * @date 2015年11月10日
 * @version 1.0
 */
public interface OrgAccountDao extends CommonDao<OrgAccount, Integer> {

    public OrgAccount findByMobile(String mobile, String countryCode);

    long save(OrgAccount orgAccount);

    int updateNumber(long lastInsertId, long number);

    Long getIdByNumber(Long number);

    /**
     * 根据ID修改手机号
     * 
     * @param countrySymbol
     * @param countryCode
     * @param mobile
     * @param orgId
     * @return
     */
    int updateMobileById(String countrySymbol, String countryCode, String mobile, Long orgId);
}